<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>login</title>
</head>
<script src="/javascripts/jq.form.js"></script>

<script>
  $(function () {
     /* document.getElementsByName('targeturl').value=window.location.href;
      alert(document.getElementsByName('targeturl').value);*/
$(".targeturl").val(window.location.href);
  })
   /* $("#submitDL").on("click",function () {
        $("#showDataForm").ajaxSubmit(function(message) {
        });
        return false;
    })*/

</script>
<body>
<div style="height:330px;background:#ffffff;">
  <div style="margin:9px 9px;border:1px solid green;width:400px;float:left;">
    <form method="post" action="/user/lon" id="showDataForm">
      <table class="table">
        <tr>
          <td colspan="2" align="center">登录</td>
        </tr>
        <tbody>
        <tr>
          <td align="right">email:</td>
          <td><input type="text" name="email" class="form-control" placeholder="文本输入"/></td>
        </tr>
        <tr>
          <td align="right">密码:</td>
          <td><input type="password" name="pwd" class="form-control" placeholder="密码"/></td>
        </tr>
        <tr>
          <td colspan="2" align="center" valign="middle">
            <input type="hidden" name="targeturl" class="targeturl" value="/"/>
            <input id="submitDL" type="submit" value="登录" class="btn btn-success"/>
          </td>
        </tr>
        </tbody>
      </table>
    </form>
  </div>
  <div style="margin:9px 9px;border:1px solid green;width:400px;float:left;">
    <form method="post" action="/user/zuce">
      <table class="table">
        <tr>
          <td colspan="2" align="center">注册</td>
        </tr>
        <tbody>
        <tr>
          <td align="right">email:</td>
          <td><input type="text" name="email" class="form-control" placeholder="文本输入"/></td>
        </tr>
        <tr>
          <td align="right">密码:</td>
          <td><input type="password" name="pwd" class="form-control" placeholder="密码"/></td>
        </tr>
        <tr>
          <td align="right">重复:</td>
          <td><input type="password" name="repwd" class="form-control" placeholder="密码"/></td>
        </tr>
        <tr>
          <td align="right">昵称:</td>
          <td><input type="text" name="nicheng" class="form-control" placeholder="昵称"/></td>
        </tr>
        <tr>
          <td colspan="2" align="center"  valign="middle">
            <input type="hidden" name="targeturl" class="targeturl" value="/"/>
            <input type="submit" value="注册" class="btn btn-success"/>
          </td>
        </tr>
        </tbody>
      </table>
    </form>
  </div>
</div></body>
</html>